Policy enforcement and visibility by open apis

ABSTRACT

The disclosed technology teaches keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection is afforded, parsing an OpenAPI specification for an API family, for identifying overall attributes of the API family. The technology includes parsing an OpenAPI specification to extract usable attributes of API resources, which are useful for building a connector, including extracting attributes of core activities that trigger protective actions, and applying a connection creator that performs actions including accessing a template for creating connector rules and using the extracted attributes with the template to produce the connector rules, thereby automating generation of connectors. Using the connector rules for the SASE protection is also taught.

PRIORITY

This application is a continuation of U.S. application Ser. No. 17/559,993, titled “Policy Enforcement and Visibility for IaaS and SaaS Open APIs,” filed 22 Dec. 2021, now U.S. Pat. No. 11,503,038, issued 15 Nov. 2022. which claims priority to Indian Application No. 202141049114, filed 27 Oct. 2021 (Attorney Docket No. NSKO 1062-1).

RELATED CASES

This application is related to the following applications which are incorporated by reference for all purposes as if fully set forth herein:

U.S. application Ser. No. 16/438,374, entitled UNIVERSAL CONNECTORS FOR CLOUD DATA LOSS PREVENTION (DLP), filed Jun. 11, 2019 (Attorney Docket No. NSKO 1011-5).

U.S. application Ser. No. 15/986,732, entitled “DATA LOSS PREVENTION USING CATEGORY-DIRECTED PARSERS,” filed on May 22, 2018 (Attorney Docket No. NSKO 1011-1).

INCORPORATIONS

The following materials are incorporated by reference for all purposes as if fully set forth herein:

U.S. Nonprovisional patent application Ser. No. 14/198,499, entitled “Security for Network Delivered Services”, filed on Mar. 5, 2014 (Atty. Docket No. NSKO 1000-2) (now U.S. Pat. No. 9,398,102 issued on Jul. 19, 2016);

U.S. Nonprovisional patent application Ser. No. 14/835,640, entitled “Systems and Methods of Monitoring And Controlling Enterprise Information Stored On A Cloud Computing Service (CCS)”, filed on Aug. 25, 2015 (Atty. Docket No. NSKO 1001-2);

U.S. Non Provisional application Ser. No. 15/368,240 entitled “Systems and Methods of Enforcing Multi-Part Policies on Data-Deficient Transactions of Cloud Computing Services”, U.S. Pat. No. 10,826,940, issued Nov. 3, 2020) and U.S. Provisional Application 62/307,305 entitled “Systems and Methods of Enforcing Multi-Part Policies on Data-Deficient Transactions of Cloud Computing Services”, filed Mar. 11, 2016 (Attorney Docket No. NSKO 1003-1);

“Data Loss Prevention and Monitoring in the Cloud” by Netskope, Inc.;

“The 5 Steps to Cloud Confidence” by Netskope, Inc.;

“Netskope Active Cloud DLP” by Netskope, Inc.; and

“Repave the Cloud-Data Breach Collision Course” by Netskope, Inc.

FIELD OF THE TECHNOLOGY DISCLOSED

The technology disclosed generally relates to keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection can be afforded.

BACKGROUND

The subject matter discussed in this section should not be assumed to be prior art merely as a result of its mention in this section. Similarly, a problem mentioned in this section or associated with the subject matter provided as background should not be assumed to have been previously recognized in the prior art. The subject matter in this section merely represents different approaches, which in and of themselves can also correspond to implementations of the claimed technology.

Cybercriminals see the cloud as an effective method for subverting detection. Patterns of cyberthreats and malicious insiders change constantly. Meanwhile, sensitive data is increasingly distributed and moving to applications that are not necessarily sanctioned or properly secured.

Existing network security architectures were designed with the enterprise data center as the focal point for access needs. Digital business requirements, as well as the COVID-19 pandemic, are driving cloud and edge computing and work-from-anywhere demands, which results in more users, devices, applications, services and data being located outside of an enterprise than inside, on premises.

Enterprises utilize millions of cloud-based services via their application programming interfaces (APIs) which enable two applications to talk to each other, with users' transactions with the cloud-based services transpiring between enterprise endpoints and servers of the cloud-based services. Policies that apply to a service and policy enforcement for the APIs in the public cloud are specific to the services.

Proliferation of hundreds of thousands to millions of cloud-based services makes it difficult and time-consuming to develop service-specific parsers customized to monitor the syntax of each new cloud-based service. Additionally, as enterprise customers overhaul their legacy applications, they contend with the challenge of providing rules for parsing API traffic and enforcing security policies for the updated cloud applications.

An opportunity arises for keeping up with the deployment of APIs, enhancing Secure Access Service Edge (SASE) protection via policy enforcement and visibility for IaaS and SaaS open APIs for data loss prevention (DLP).

BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings, like reference characters generally refer to like parts throughout the different views. Also, the drawings are not necessarily to scale, with an emphasis instead generally being placed upon illustrating the principles of the technology disclosed. In the following description, various implementations of the technology disclosed are described with reference to the following drawings.

FIG. 1 illustrates an architectural level schematic of a system for keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection is afforded, in accordance with an implementation of the technology disclosed.

FIG. 2 illustrates a high-level block diagram for generating API-specific connectors, for keeping up with the deployment of APIs, so that SASE protection is afforded.

FIG. 3 shows the structure of an example open-source API specification, in JSON, represented in key value pairs, for creating a cluster in AWS.

FIG. 4 lists details for API data to connector dictionary for the “Amazon Elastic Kubernetes Service” (AWS) Open API example.

FIG. 5 illustrates example app dictionary and resource dictionary details.

FIG. 6 illustrates the example API data to connector dictionary for the “Amazon Elastic Kubernetes Service” (AWS) Open API example, with a snapshot of the first twenty-three entries of the operation ID dictionary for the EKS app with a JSON list of parameters and post data dictionary parameters required to identify the API activity.

FIG. 7 , FIG. 8 , FIG. 9 , FIG. 10A and FIG. 10B list the common template for the activities, including but not limited to upload, download, delete, create.

FIG. 7 lists page one of five or the template in Jinja.

FIG. 8 lists page two of five of the template, in Jinja.

FIG. 9 lists page three of five the template, in Jinja.

FIG. 10A lists page four of five of the template, in Jinja.

FIG. 10B lists page five, the last page of the template, in Jinja.

FIG. 11 , FIG. 12 , FIG. 13 and FIG. 14 list the resulting connector resource for creating the cluster activity for the AWS create cluster example.

FIG. 11 , FIG. 12 , FIG. 13 and FIG. 14 list the resulting connector resource

FIG. 11 lists page one the resulting connector resource.

FIG. 12 lists page two the resulting connector resource.

FIG. 13 lists the third page the resulting connector resource.

FIG. 14 lists the last page of the resulting connector resource.

FIG. 15 shows an example graphical user interface (GUI) for visualization and policy setting for open API specs, using the disclosed generated connector rules for the APIs.

FIG. 16 shows the real-time protection policy UI for setting profile and action, and to set policy for the generated connector rules for the Amazon EKS example.

FIG. 17 shows a UI usable to select activities and constraints, based on the generated connector rules for the Amazon EKS.

FIG. 18 is a simplified block diagram of a computer system that can be used for keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection is afforded, in accordance with an implementation of the disclosed technology.

INCORPORATION BY REFERENCE OF FILE SUBMITTED ELECTRONICALLY WITH APPLICATION

The following file is submitted with this application as Appendix A and is incorporated by reference.

File name Creation date Size

Complete Connector for Amazon EKS Open API 19 Oct. 2021 198.1 KB

DETAILED DESCRIPTION

The following detailed description is made with reference to the figures. Sample implementations are described to illustrate the technology disclosed, not to limit its scope, which is defined by the claims. Those of ordinary skill in the art will recognize a variety of equivalent variations on the description that follows.

Enterprise users access multiple cloud-based services to perform a variety of activities related to products and services. In one example, a user can access a cloud-based customer relationship management (CRM) system API to generate a report of open sales opportunities. The user can download the report to an endpoint such as a computer or a mobile device. Following this, the user can share the report with other users by uploading it to a cloud-based storage service. Monitoring of these interactions is part of a data loss prevention (DLP) program.

The users' transactions with cloud-based services transpire between enterprise endpoints and servers of the cloud-based services. A proxy positioned between the endpoints and the cloud-based services monitors the transactions. The proxy intercepts and parses a message between an endpoint and a server. It determines which cloud-based service application programming interface (API) is being accessed and applies a parser (also known as a connector) to collect metadata.

Proliferation of hundreds of thousands to millions of cloud-based services makes it difficult and time-consuming to develop service-specific parsers customized to monitor the syntax of each new cloud-based service. Additionally, as enterprise customers overhaul their legacy applications, they contend with the challenge of providing rules for parsing API traffic and enforcing security policies for the updated cloud applications.

Existing approaches for providing policy enforcement for application specifications in the public cloud require a concerted reverse engineering effort to come up with rules for parsing API traffic. Logs of the ways a user uses an application are examined to come up with rules for a connector (also referred to as a parser) for each set of APIs a customer is using to automate their infrastructure. In one example, Amazon Web Services (AWS) provides more than 250 services and 9,500 CLI commands, so manual validation is not feasible.

The technology disclosed solves the technical problem of keeping up with the deployment of APIs, thus enhancing Secure Access Service Edge (SASE) protection via policy enforcement and visibility for IaaS AND SaaS open APIs for data loss prevention (DLP). The technology disclosed enables the opening of API specifications for services and extraction of attributes of the APIs, and merges extracted attributes with templates to build and deploy connectors, also referred to as deep packet inspection (DPI) proxies, that provide the SASE protection. The disclosed technology can open millions of APIs documented on the Internet automatically, and construct and add API-specific connectors for the APIs to a deep packet inspection (DPI) proxy. When customers start using those services, such as the Amazon Elastic Kubernetes Service (EKS) APIs, to automate their infrastructure, policies are automatically enforced for the new API traffic.

An example system for keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection is afforded, is described next.

Architecture

FIG. 1 shows an architectural level schematic of a system 100 for keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection is afforded. Because FIG. 1 is an architectural diagram, certain details are intentionally omitted to improve clarity of the description. The discussion of FIG. 1 will be organized as follows. First, the elements of the figure will be described, followed by their interconnections. Then, the use of the elements in the system will be described in greater detail.

FIG. 1 includes the system 100 with user endpoints 102, a cloud-based hosting service 136, a web service 137, a cloud-based storage service 138, a metadata accumulation store 198, an API database 195, a Netskope cloud-based security system 152 with inline proxy 162, and a network(s) 165. Cloud-based hosting services 136, web services 137, and cloud-based storage services 138 are collectively referred to as cloud-based services 118. User endpoints 102 such as computers 112 a-n, tablets 122 a-n and mobile devices 132 a-n (such as cell phones) access and interact with data stored on the cloud-based services 118. This access and interaction are modulated by an inline proxy 162 that is interposed between the user endpoints and the cloud-based services 118. The inline proxy 162 uses a traffic monitor 172 and API (application programming interface) parser 182 to monitor traffic between the user endpoints 112 and the cloud-based services 118. The inline proxy 162 can be a cloud-based proxy or located on premise.

In a “managed device” implementation, user endpoints 102 are configured with routing agents (not shown) which ensure that requests for the cloud-based services 118 originating from the user endpoints 102 and responses to the requests are routed through the inline proxy 162 for policy enforcement. Once the user endpoints 102 are configured with the routing agents, they are under the ambit or purview of the inline proxy 162, regardless of their location (on premise or off premise).

In an “unmanaged device” implementation, certain user endpoints that are not configured with the routing agents can still be under the purview of the inline proxy 162 when they are operating in an on-premises network monitored by the inline proxy 162.

The interconnection of the elements of system 100 will now be described. The network(s) 165 couples the computers 112 a-n, the tablets 122 a-n, the mobile devices 132 a-n, the cloud-based services 118, the metadata store 198, the API database 195, and the inline proxy 162 in communication with each other (indicated by solid double-arrowed lines). The communication path can be point-to-point over public and/or private networks. The communications can occur over a variety of networks, e.g., private networks, VPN, MPLS circuit, or Internet, and can use appropriate application programming interfaces (APIs) and data interchange formats, e.g., Representational State Transfer (REST), JavaScript Object Notation (JSON), Extensible Markup Language (XML), Simple Object Access Protocol (SOAP), Java Message Service (JMS), and/or Java Platform Module System. All of the communications can be encrypted. The communication is generally over a network such as the LAN (local area network), WAN (wide area network), telephone network (Public Switched Telephone Network (PSTN), Session Initiation Protocol (SIP), wireless network, point-to-point network, star network, token ring network, hub network, Internet, inclusive of the mobile Internet, via protocols such as EDGE, 3G, 4G LTE, Wi-Fi and WiMAX. The engines or system components of FIG. 1 are implemented by software running on varying types of computing devices. Example devices are a workstation, a server, a computing cluster, a blade server, and a server farm. Additionally, a variety of authorization and authentication techniques, such as username/password, Open Authorization (OAuth), Kerberos, SecureID, digital certificates and more, can be used to secure the communications.

The cloud-based services 118 provide functionality to users that is implemented in the cloud or on the Internet. The cloud-based services 118 can include Internet hosted services such as news websites, blogs, video streaming websites, social media websites, hosted services, cloud applications, cloud stores, cloud collaboration and messaging platforms, and/or cloud customer relationship management (CRM) platforms. Cloud-based services 118 can be accessed using a browser (e.g., via a URL) or a native application (e.g., a sync client). Categories of cloud-based services include software-as-a-service (SaaS) offerings, platform-as-a-service (PaaS) offerings, and infrastructure-as-a-service (IaaS) offerings. Enterprise applications exposed via URLs/APIs can fit in a category of service supported by a category-directed parser or a category-directed parser could be written for an enterprise applications category of service. Examples of common web services today include YouTube™, Facebook™, Twitter™, Google™, LinkedIn™ Wikipedia™, Yahoo™, Baidu™, Amazon™, MSN™, Pinterest™, Taobao™, Instagram™ Tumblr™, eBay™, Hotmail™, Reddit™ IMDb™, Netflix™, PayPal™, Imgur™, Snapchat™ Yammer™, Skype™, Slack™, HipChat™, Confluence™, TeamDrive™, Taskworld™, Chatter™, Zoho™, ProsperWorks™, Google's Gmail™, Salesforce.com™, Box™, Dropbox™ Google Apps™, Amazon AWS™, Microsoft Office365™, Workday™, Oracle on Demand™ Taleo™, Jive™, and Concur™.

The cloud-based services 118 provide functionality to the users of the organization that is implementing security policies. When a user sends a request to a cloud-based service via an endpoint 112 a, the inline proxy 162 intercepts the request message. The inline proxy 162 queries the API database 195 to identify the cloud-based service being accessed via an application programming interface (API). In one implementation, the inline proxy 162 uses a domain name in a uniform resource locator used to access the API to identify the cloud-based service being accessed.

User identity refers to an indicator that is provided by the network cloud-based security system 152 to the client device, in the form of a token, a unique identifier such as a UUID, a public-key certificate, or the like. In some cases, the user identity can be linked to a specific user and a specific device; thus, the same individual can have a different user identity on their mobile phone vs. their computer. The user identity can be linked to an entry or corporate identity directory but is distinct from it. In one implementation, a cryptographic certificate signed by the network security is used as the user identity. In other implementations, the user identity can be solely unique to the user and be identical across devices.

Embodiments can also interoperate with single sign-on (SSO) solutions and/or corporate identity directories, e.g., Microsoft's Active Directory (AD). Such embodiments may allow policies to be defined in the directory, e.g., either at the group or user level, using custom attributes. Hosted services configured with the system are also configured to require traffic via the system. This can be done through setting IP range restrictions in the hosted service to the IP range of the system and/or integration between the system and SSO systems. For example, integration with a SSO solution can enforce client presence requirements before authorizing the sign-on. Other embodiments may use “proxy accounts” with the SaaS vendor, e.g., a dedicated account held by the system that holds the only credentials to sign into the service. In other embodiments, the client may encrypt the sign on credentials before passing the login to the hosted service, meaning that the networking security system “owns” the password.

API database 195 and metadata accumulation store 198 can store information from one or more tenants into tables of a common database image to form an on-demand database service (ODDS), which can be implemented in many ways, such as a multi-tenant database system (MTDS). A database image can include one or more database objects. In other implementations, the databases can be relational database management systems (RDBMSs), object-oriented database management systems (OODBMSs), distributed file systems (DFS), no-schema database, or any other data storing systems or computing devices. In some implementations, the gathered metadata is processed and/or normalized. In some instances, metadata includes structured data and functionality targets specific data constructs provided by cloud-based services 118. Non-structured data, such as free text, can also be provided by, and targeted back to cloud services 118.

While system 100 is described herein with reference to particular blocks, it is to be understood that the blocks are defined for convenience of description and are not intended to require a particular physical arrangement of component parts. Further, the blocks need not correspond to physically distinct components. To the extent that physically distinct components are used, connections between components can be wired and/or wireless as desired. The different elements or components can be combined into single software modules and multiple software modules can run on the same processors.

Moreover, this technology can be implemented using two or more separate and distinct computer-implemented systems that cooperate and communicate with one another. This technology can be implemented in numerous ways, including as a process, a method, an apparatus, a system, a device, a computer readable medium such as a computer readable storage medium that stores computer readable instructions or computer program code, or as a computer program product comprising a computer usable medium having a computer readable program code embodied therein. The technology disclosed can be implemented in the context of any computer-implemented system including a database system or a relational database implementation like an Oracle™ compatible database implementation, an IBM DB2 Enterprise Server™ compatible relational database implementation, a MySQL™ or PostgreSQL™ compatible relational database implementation or a Microsoft SQL Server™ compatible relational database implementation or a NoSQL non-relational database implementation such as a Vampire™ compatible non-relational database implementation, an Apache Cassandra™ compatible non-relational database implementation, a BigTable™ compatible non-relational database implementation or an HBase™ or DynamoDB™ compatible non-relational database implementation. In addition, the technology disclosed can be implemented using different programming models like MapReduce™, bulk synchronous programming, MPI primitives, etc. or different scalable batch and stream management systems like Amazon Web Services (AWS)™, including Amazon Elasticsearch Service™ and Amazon Kinesis™, Apache Storm™ Apache Spark™, Apache Kafka™, Apache Flink™, Truviso™, IBM Info-Sphere™, Borealis™ and Yahoo! S4™.

FIG. 2 illustrates a high-level block diagram of a system 200 for generating API-specific connectors, for keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection is afforded. Netskope Cloud-Based Security System 152 has connector generator tool 245 which in turn has API parser 242 with extractor 252, API data to connector dictionary 254, connector creator 255, template selector 265, template database 275 and API database 195. Connector generator tool 245 generates API-specific connectors 258 that are deep packet inspection (DPI) proxies for providing SASE protection. The DPI proxy is utilized for visibility and policy enforcement, after identifying activities associated with APIs, objects associated with APIs, and data moving activities. An example template file is listed in FIG. 7 , FIG. 8 , FIG. 9 , FIG. 10A and FIG. 10B below.

Users access hundreds to thousands of providers of cloud-based services to generate, store, collaborate and share data with other users inside or outside of the organization. Millions of applications utilize open API specifications 212. An API is a set of programming code that enables data transmission between one software product and another. The Open API specification defines a standard format interface to RESTful APIs which allows both humans and computers to understand the capabilities of the service without looking at the source code or documentation, and without performing network traffic inspection. An Open API is publicly available for developers, who use APIs in many programmatic ways in the development of cloud-based services, such as client libraries, command line interface (CLI) tools and native applications that interact with cloud-based services from vendors such as AWS, Microsoft apps including Azure services, Google apps including GCP services, Box, Slack and Dropbox. The end users can understand and interact with the remote services with a minimal implementation of logic when the API documentation is well-defined. For reference, OpenAPI-Specification, accessed at https://github.com/OAI/OpenAPI-Specification/ on Oct. 14, 2021, provides open API documentation publicly. The APIs of services can also be stored in API database 195.

Continuing the description of system 200, extractor 252 extracts attributes from open API specifications 212, utilizing the structure of open source APIs, as described relative to FIG. 3 below. Open API specifications pulled from the open source repository are converted from YAML to JSON file format in one example, and parsed for storing in API data to connector dictionary 254 in app dictionary 264 and resource dictionary 274, which are described relative to FIG. 4 below. Extracted API attributes are stored in API database 195 and sent to API data to connector dictionary 254. Connector generator tool 245 generates the app connector rule (application signatures) for each API call by understanding the Open API specification for an API family and mapping per-activity attributes that correspond to core activities. The generated application signatures uniquely identify the overall attributes of the API family. API parser 242 identifies resources with respective URIs within the API family and extracts usable attributes of the API resources, useful for building a connector, including per-activity attributes that correspond to core activities that trigger protective actions.

Further continuing the description of the system of FIG. 2 , connector generator tool 245 accesses a template for creating connector rules that recognize intercepted API calls and activities requested by the API calls, and that trigger the protective actions. The templates are described relative to an example template listed in FIG. 7 , FIG. 8 , FIG. 9 and FIG. 10A and FIG. 10B below. Connector generator tool 245 applies the template to the extracted attributes from the API resources to produce the connector rules and stores the connector rules in API-specific connector 258 for use in processing intercepted APIs. API parser 242 identifies the action, and connector creator 255 provides an API-specific connector 258. Inline proxy 162 deploys the API-specific connector 258 as a deep packet inspection (DPI) proxy that provides SASE protection. That is, the application signatures get consumed by the Netskope cloud DPI engine for matching real-time API traffic, identifying the activity—such as create, delete, edit, upload, and download, and extracting fine-grain granular information including file metadata and user details, etc.

Attributes extracted from open API specifications 212 include protocol field (HTTPS & HTTP), server/host maps to domains in the connector, BasePath field that specifies base URI path of the connector resources, title as the application name, paths: dictionary will contain the URI for all the available API(s) for the given service. Further it will contain the HTTP methods DELETE, GET, PUT and POST. Additional attributes include OperationID. The HTTP method dictionary will contain description and OperationID. The value of the OperationID key can be used to identify the activity performed, which is described in more detail below. Parameters field contains “required” key to detect mandatory params, and responses will contain the list of status codes returned by the server.

FIG. 3 shows the structure of an example open-source API specification 212, in JSON, represented in key value pairs, for creating a cluster in AWS. Several sections are described next, highlighting the high-level structure for an AWS API example. The info section specifies the service title: “Amazon Elastic Kubernetes Service” 312, provider name, x-providerName: “amazonaws.com”, service name, x-serviceName: “eks” and x-aws-signingName: “eks” 322. The servers section 334 specifies the API server and base URL information, such as servers domain: eks.us-east-1.amazonaws.com, eks.us-east-2.amazonaws.com etc. If the service is using multiple servers or regions, then multiple servers' details will be defined. The API paths are relative to the server URL, url: “https://eks.{region}.amazonaws.com” 344 with the AWS region default: “region us-east-1” 354. The paths 364 define individual endpoints (paths) for each API and the HTTP methods (operations) supported by these endpoints. The API operation includes parameters, request body (if any), possible response status codes and response content; for this example, URL: https://eks.us-east-1.amazonaws.com/clusters 374 and http method: Post 372, with operationId: “CreateCluster” 384. The responses 382 contain the possible HTTP status codes returned by the server and file content if any. The requestBody 392 contains the mandatory and optional parameters in JSON, Mime, post data fields formats and specifies the fields that indicate the data transfer with type: object, required 0: “name”, 1: “roleArn” and 2: “resourcesVpcConfig” 376. The request bodies are generally used with “create” and “update” operations (POST, PUT, PATCH). API operation can have parameters passed via URL path, query string and headers. The components section 386 holds a set of reusable objects for different aspects of the Open API Spec. The reusable components are schemas responses, parameters, request bodies, headers, security schemes, callbacks, etc. The security section 396 contains authentication methods used in API. Open API documentation is available in public for 3300+ SaaS/IaaS services.

FIG. 4 lists details for API data to connector dictionary 254 for the “Amazon Elastic Kubernetes Service” (AWS) Open API example described above. The FIG. 4 snippet lists the first eight Amazon EKS API CLI native resources, with details expanded for resource dictionary amazon_eks_api_cli_native_resource_4 414, for action 1 432 to create cluster 444. The FIG. 4 snippet also lists details for amazon_eks_api_cli_native_resource_5 406 resource dictionary, which shows post method as action_1 416, with mandatory URI parameters 436, header parameters 456, post data parameters 446, JSON parameters 466, mime parameters, etc. for uniquely identifying the API action 416. The endpoint URLs lists endpoints used to distinguish different activities. Action 3 476 for amazon_eks_api_cli_native_resource_5 406 resource dictionary lists details for a get method, including the postparam_list 486.

FIG. 5 illustrates app dictionary 264 and resource dictionary 274 details. App dictionary 264 stores the information needed to define the application app connector for the API, and includes domain dictionary 502 that stores the domains that are needed for the API, such as eks.us-east-2.amazonaws.com 572, eks.us-east-1.amazonaws.com 552, etc. App dictionary 264 also includes app activities dictionary 505 with application-related activities for creating a cluster such as Create, Register, View, Edit and Delete. App dictionary 264 further includes app name dictionary that has the service name details such as application name “Amazon EKS” 545. FIG. 5 also lists a sample URI parameters list 555 and a sample mime list 508 that contains the required/mandatory MIME parameters to identify the API activity.

FIG. 6 further illustrates the example API data to connector dictionary 254 for the “Amazon Elastic Kubernetes Service” (AWS) Open API example described above, with a snapshot of the first twenty-three entries of the operation ID dictionary 602 for the EKS app. JSON list 606 parameters identify the API activity. Post data dictionary parameters 656 shows the required/mandatory post data parameters to identify the API activity. Some of the APIs are not defined via operation_id in the Open API specification. The following disclosed logic is usable to uniquely identify the operation_id, for situations in which the operation_id is not available in the API.

{ /* endpoint is /clusters/{name}/node-groups */ /* http method(post, patch, put, delete,get) */ Extract the last part of the URI that is “node-groups” from the url endpoint information. Extract the http method that is used by api call. If http_method is post: { Generally the http post method is used for creating an object, combining the meaning of http method and last part of the uri path. operation_id = CreateNodegroup } elif http_method is patch or put: { Generally the http put and patch methods are used for editing a created object, combining the meaning of method and uri path. api_action = EditNodegroup } elif http_method is delete: { Generally the http delete method is used for editing a created object, combining the meaning of method and uri path. api_action = DeleteNodegroup } elif http_method is get: { Generally the http get method is used for listing objects, combining the meaning of method and uri path. api_action = ListNodegroup } } def operation_id_mapping(method,last_part_of_endpoint_url): if operation_id != defined: operation_id = (lambda method : ′Create′ if (method == ′post′) else (′Edit′ if (method == ′put′ or method == ′patch′) \ else (′View′ if (method == ′get′ or method == ′head′) else (′Delete′ if (method == ′delete′) else method))))(method) operation_id = operation_id + last_part_of_endpoint_url return operation_id

Netskope Cloud-Based Security System 152 currently provides support for more than fifty unique activities via GUI, in one example. The number of APIs displayed depends on the number of activities that are readily supportable for admins to create policies. Additional unique activities can be supported by Netskope Cloud-Based Security System 152. Supported activities are mapped, to support consistency between the API specification and the visualization experience for administrators creating the policies. An example mapping of operation_id vs Netskope core activity is listed next.

Operation_id Netskope Activity CreateReplicationSubnetGroup Create TagResource Create RemoveEventSource Delete UntagResource Delete PutAppsList Edit PutEncryptionConfig Edit PutTraceSegments Edit UpdateSqlInjectionMatchSet Edit UpdateStreamingDistribution Edit UpdateWebACL Edit UpdateXssMatchSet Edit RegisterEventTopic Register StartReplicationTask Start StopReplicationTask Stop UploadFunction Upload ListRules View ListSqlInjectionMatchSets View ListStreamingDistributions View ListTagsForResource View

The disclosed technology can extract the unique organization id with which admin can create policies to access control between corporate and non-corporate instances. For example: (a) Instance_id for AWS is the account information, (b) instance_id for GCP is project_id, and (c) instance_id for Azure is a subscription. For access key/tokens, the disclosed technology extracts the access key and tokens from the API traffic and use this to derive the instance_id mentioned above. In some implementations, this will not be populated in the events. The service provider field indicates the vendor details of these Open API specifications, in some cases. For example, amazonaws.com, googleapis.com, azure.com, etc. The service domain field indicates the API server domain that is needed to identify the API traffic. For example, eks.ap-southeast-1.amazonaws.com, ec2.eu-central-1.amazonaws.com, compute.googleapis.com, management.azure.com, etc. Endpoint URL is a URL to the target host and is a unique identifier used to locate a resource on the Internet. The disclosed technology extracts the URL information from the API traffic and provides it in the event fields. Examples: (a) eks.ap-southeast-1.amazonaws.com/clusters/.+/addons, (b) eks.ap-southeast-1.amazonaws.com/clusters, (c) eks.ap-southeast-1.amazonaws.com/clusters/.+/fargate-profiles, (d) eks.ap-southeast-1.amazonaws.com/clusters/.+/node-groups. The region consists of multiple, isolated, and physically separate zones within a geographic area. The API traffic has the region details for applicable APIs, so the disclosed technology extracts this information from the API traffic. For example, ap-southeast-1, cn-northwest-1, us-east-2, us-east-1, etc. The file size indicates the size of the file content transferring between client and server. Based on this field, customers can create a policy to block bigger size file uploads or downloads, of various sizes (bytes): 5273, 1260, 1 GB, 2 MB etc. The file type indicates the type of content the file is transferring. Based on the file type, customers can create policies to allow certain types of contents and block certain types of contents. For example, application/octet-stream, text/plain, image/png, etc.

FIG. 7 , FIG. 8 , FIG. 9 , FIG. 10A and FIG. 10B list the template for the activities, including but not limited to upload, download, delete, create, etc. This template gets filled with the data that is extracted from Open API spec 212 and generates the application connectors, aka application signatures. FIG. 7 lists var names, including data center 742, on page one of five or the template in Jinja. FIG. 8 shows triggers 832 and resource name 862, on page two of five of the template, in Jinja. FIG. 9 shows request 942 on page three of five the template, in Jinja. FIG. 10A lists specifics for header in parent_dict 1042, on page four of five of the template, in Jinja. FIG. 10B shows the instance ID 1022 and data center 1032 variable entries on page five, the last page of the template, in Jinja. Each attribute has a single template, and the same template can be utilized across API vendors, such as AWS, GCP and Azure, in one implementation. Jinja, an extensible templating engine, is used in this example, for one implementation of the disclosed technology. Special placeholders in the template allow code similar to Python syntax to be added. A different syntax and template and templating engine can be used in a different implementation.

FIG. 11 , FIG. 12 , FIG. 13 and FIG. 14 list the resulting connector resource for creating the cluster activity for the AWS create cluster example. Extractor 252 extracts the server domain that is needed for matching real-time API traffic (eks.us-east-1.amazonaws.com) from the Open API specification, to identify the create cluster activity for the real-time create cluster, and extracts the URL to the target host, a unique identifier used to locate a resource. For example, FIG. 11 lists eks.us-east-1.amazonaws.com 1134 on page one the resulting connector resource. FIG. 12 shows the trigger for create 1264, which is on page two the resulting connector resource. FIG. 13 lists Create Cluster 1376 on the third page the resulting connector resource. FIG. 14 lists create trigger 1464 for instance ID, data center and API command, on the last page of the resulting connector resource. This ‘/clusters’ endpoint gets matched with real-time API traffic. Extractor 252 also extracts the HTTP post method that will be matched with real-time API traffic and the mandatory JSON parameters that will be matched with real-time API traffic: name, roleArn 1372, resourcesVpcConfig 1374. Extractor 252 further extracts the response code to check whether the API call is successful or failed (200 Ok or 302 created).

Appendix A lists a complete generated application connector for the Amazon Elastic Kubernetes Service Open API.

FIG. 15 shows an example graphical user interface (GUI) for visualization and policy setting for open API specs 212, using the disclosed generated connector rules for the APIs. In this example, Admins can go to the Netskope SASE screen, then select Policies 1502, then select real-time protection 1522 and use the dropdown menu to set up a new policy 1524.

FIG. 16 shows the real-time protection policy 1604 UI for setting profile and action 1664 and to set policy 1674 for the generated connector rules for the Amazon EKS 1644 example described above. The settings enable the Netskope cloud-based security system 152 to specify policy enforcement and visibility to protect their sensitive data, as described in the use cases below.

FIG. 17 shows a UI usable to select activities and constraints 1714, based on the generated connector rules for the Amazon EKS, of the example. Admins can use this UI to select activities 1722 and then set constraints 1724 for the selected activities.

A sample event, an AWS EKS cluster creation API action, is listed next for activity create cluster, for app Amazon EKS. The disclosed generated connection rules are deployed for processing the intercepted event.

tenantid=1016 user-‘venkat@netskope.com’ { “_category_id”: “14”, “_category_tags”: [“564”,“14”], “_content_version”: 1626409604, “_nshostname”: “proxy-dev02”, “_resource_name”: “resource_13”, “_session_begin”: “1”, “_skip_geoip_lookup”: “yes”, “_src_epoch_now”: 0, “access_method”: “Client”, “activity”: “Create”, “api action”: “CreateCluster”, “alert”: “Block/User Alert”, “app”: “Amazon EKS”, “app_session_id”: 2281331584115489765, “appsuite”: “Amazon”, “browser”: “Native”, “browser_session_id”: 6063472628009069822, “connection_id”: 6445013418787561624, “count”: 1, “device”: “Mac Device”, “device_classification”: “not configured”, “dst_latitude”: 0.0, “dst_location”: “N/A”, “dst_longitude”: 0.0, “dst_timezone”: “N/A”, “dstip”: “172.16.178.192”, “hostname”: “Venkat's MacBook Pro”, “instance_id”: “086760228850”, “managed_app”: “yes”, “netskope_pop”: “NSKP-STARFISH”, “os”: “Catalina”, “os_version”: “Catalina”, “page”: “eks.us-east-1.amazonaws.com”, “page_site”: “Amazon EKS”, “protocol”: “HTTP/1.1”, “site”: “Amazon EKS”, “src_latitude”: 0.0, “src_location”: “N/A”, “src_longitude”: 0.0, “src_time”: “N/A”, “src_timezone”: “N/A”, “srcip”: “10.50.0.244”, “sv”: “unknown”, “telemetry_app”: “”, “timestamp”: 1626620052, “traffic_type”: “CloudApp”, “transaction_id”: 1143919440552012032, “type”: “nspolicy”, “url”: “eks.us-east-1.amazonaws.com/clusters”, “user”: “venkat@netskope.com”, “userip”: “10.50.0.244” }

The disclosed technology enables developers who are using open API specs to gain the ability to specify policy enforcement and visibility to protect their sensitive data using disclosed generated API-specific connectors using the GUI, as described above. The following use cases describe results achieved via the disclosed generated app connectors.

In one case, the disclosed API-specific connectors limit access to sanctioned instances with policy controls, and in another case, provide limited access to the authorized users of sanctioned instances, which results in reduced misconfiguration. The disclosed app connectors also support identifying sensitive actions being performed by users on sanctioned instances and enforcing policies, as well as deleting or editing security-related policies.

In another use case, the disclosed methods of keeping up with the deployment of APIs supports the ability to identify anomalous activities, and to apply UEBA to real-time activity events, with multiple delete operations in a short duration.

A further use case includes detection of data exfiltration, and the ability to apply an API-specific DLP profile to monitor unsanctioned traffic for data exfiltration detection and blocking. Yet other use cases include threat protection, with malware inspection of transit traffic to both sanctioned and unsanctioned instances.

The disclosed technology for creating connectors (also referred to as parsers) also makes it possible for customers, such as app developers, to upload their APIs for processing when they are overhauling their legacy applications. Then their tenant can open their API and readily gain visibility into vulnerabilities.

In one example implementation, the disclosed technology generated API-specific connectors for two hundred fifty Amazon Web Services that consist of more than nine thousand five hundred API calls.

Computer System

FIG. 18 is a simplified block diagram of a computer system 1800 that can be used for keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection is afforded. Computer system 1800 includes at least one central processing unit (CPU) 1872 that communicates with a number of peripheral devices via bus subsystem 1855, and Netskope Cloud-Based Security System 152 with API-Specific Connectors 258 for providing network security services described herein. These peripheral devices can include a storage subsystem 1810 including, for example, memory devices and a file storage subsystem 1836, user interface input devices 1838, user interface output devices 1876, and a network interface subsystem 1874. The input and output devices allow user interaction with computer system 1800. Network interface subsystem 1874 provides an interface to outside networks, including an interface to corresponding interface devices in other computer systems.

In one implementation, Netskope Cloud-Based Security System 152 with API-Specific Connectors 258 of FIG. 2 is communicably linked to the storage subsystem 1810 and the user interface input devices 1838.

User interface input devices 1838 can include a keyboard; pointing devices such as a mouse, trackball, touchpad, or graphics tablet; a scanner; a touch screen incorporated into the display; audio input devices such as voice recognition systems and microphones; and other types of input devices. In general, use of the term “input device” is intended to include all possible types of devices and ways to input information into computer system 1800.

User interface output devices 1876 can include a display subsystem, a printer, a fax machine, or non-visual displays such as audio output devices. The display subsystem can include an LED display, a cathode ray tube (CRT), a flat-panel device such as a liquid crystal display (LCD), a projection device, or some other mechanism for creating a visible image. The display subsystem can also provide a non-visual display such as audio output devices. In general, use of the term “output device” is intended to include all possible types of devices and ways to output information from computer system 1800 to the user or to another machine or computer system.

Storage subsystem 1810 stores programming and data constructs that provide the functionality of some or all of the modules and methods described herein. Subsystem 1878 can be graphics processing units (GPUs) or field-programmable gate arrays (FPGAs).

Memory subsystem 1822 used in the storage subsystem 1810 can include a number of memories including a main random access memory (RAM) 1832 for storage of instructions and data during program execution and a read only memory (ROM) 1834 in which fixed instructions are stored. A file storage subsystem 1836 can provide persistent storage for program and data files, and can include a hard disk drive, a floppy disk drive along with associated removable media, a CD-ROM drive, an optical drive, or removable media cartridges. The modules implementing the functionality of certain implementations can be stored by file storage subsystem 1836 in the storage subsystem 1810, or in other machines accessible by the processor.

Bus subsystem 1855 provides a mechanism for letting the various components and subsystems of computer system 1800 communicate with each other as intended. Although bus subsystem 1855 is shown schematically as a single bus, alternative implementations of the bus subsystem can use multiple busses.

Computer system 1800 itself can be of varying types including a personal computer, a portable computer, a workstation, a computer terminal, a network computer, a television, a mainframe, a server farm, a widely-distributed set of loosely networked computers, or any other data processing system or user device. Due to the ever-changing nature of computers and networks, the description of computer system 1800 depicted in FIG. 18 is intended only as a specific example for purposes of illustrating the preferred embodiments of the present invention. Many other configurations of computer system 1800 are possible having more or less components than the computer system depicted in FIG. 18 .

Particular Implementations

Some implementations and features for keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection is afforded are described in the following discussion.

In one implementation, a disclosed method of keeping up with the deployment of APIs, so that Secure Access Service Edge (SASE) protection is afforded includes parsing an OpenAPI specification for an API family: identifying overall attributes of the API family, identifying resources with respective URIs within the API family, and extracting usable attributes of the API resources, useful for building a connector, including extracting per-activity attributes that correspond to core activities that trigger protective actions. The disclosed method also includes applying a connector creator that performs actions including accessing a template for creating connector rules that recognize intercepted API calls and activities requested by the API calls, and that trigger the protective actions, using the template and the extracted attributes from the API resources, producing the connector rules, and storing the connector rules for use in processing intercepted APIs.

The method described in this section and other sections of the technology disclosed can include one or more of the following features and/or features described in connection with additional methods disclosed. In the interest of conciseness, the combinations of features disclosed in this application are not individually enumerated and are not repeated with each base set of features. The reader will understand how features identified in this method can readily be combined with sets of base features identified as implementations.

Some implementations of the disclosed method include deploying the connector rules in deep packet inspection (DPI) proxies for processing the intercepted APIs.

One implementation of the disclosed method further includes determining to use the connector rules based on a domain name in a uniform resource identifier (URI) used to access the API.

Many implementations of the disclosed method include an operation identifier key usable to identify activities requested by the API calls. Some also include combining uniform resource locator (URL) endpoint information and at least part of a URI for an API call to create an alternate operation identifier usable to identify activities requested by the API call.

For some implementations of the disclosed method the API family includes one of Amazon Web Services (AWS), Google Cloud Platform (GCP) and Microsoft Azure. The API family can also include Alibaba Open Platform which provides partners with raw materials, such as API, account system and data security; IBM Cloud® platform which combines platform as a service (PaaS) with infrastructure as a service (IaaS) to provide an integrated experience; and Oracle Cloud which supports flexible multi-cloud deployments and meets specific industry requirements for government, financial services, and other industries; as well as private clouds of organizations.

In one implementation of the disclosed method, the extracted usable attributes include a protocol field value, server domain and a base URI path of connector resources.

Other implementations of the methods described in this section can include a tangible non-transitory computer readable storage medium storing program instructions loaded into memory that, when executed on processors cause the processors to perform any of the methods described above. Yet another implementation of the methods described in this section can include a device including memory and one or more processors operable to execute computer instructions, stored in the memory, to perform any of the methods described above.

Any data structures and code described or referenced above are stored according to many implementations on a computer readable storage medium, which may be any device or medium that can store code and/or data for use by a computer system. This includes, but is not limited to, volatile memory, non-volatile memory, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), magnetic and optical storage devices such as disk drives, magnetic tape, CDs (compact discs), DVDs (digital versatile discs or digital video discs), or other media capable of storing computer-readable media now known or later developed.

The preceding description is presented to enable the making and use of the technology disclosed. Various modifications to the disclosed implementations will be apparent, and the general principles defined herein may be applied to other implementations and applications without departing from the spirit and scope of the technology disclosed. Thus, the technology disclosed is not intended to be limited to the implementations shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein. The scope of the technology disclosed is defined by the appended claims. 

What is claimed is:
 1. A method of building connectors that trigger protective actions during API calls including: parsing an OpenAPI specification to extract usable attributes of API resources, which are useful for building a connector, including extracting attributes of core activities that trigger protective actions; and applying a connection creator that performs actions including accessing a template for creating connector rules and using the extracted attributes with the template to produce the connector rules, thereby automating generation of connectors.
 2. The method of claim 1, further including deploying connector rules in deep packet inspection (DPI) proxies for processing of intercepted APIs.
 3. The method of claim 1, further including determining to use connector rules based on a domain name in a uniform resource identifier (URI) used to access an API described by the OpenAPI specification.
 4. The method of claim 1, wherein a generated connector is configured to interface with at least one of infrastructure-as-a-service (IaaS), platform-as-a-service (PaaS), or software-as-a-service (SaaS).
 5. The method of claim 1, further including an operation identifier key usable to identify activities requested by API calls.
 6. The method of claim 4, further including combining uniform resource locator (URL) endpoint information and at least part of a uniform resource identifier (URI) for an API call to create an alternate operation identifier usable to identify activities requested by the API call.
 7. The method of claim 1, wherein an API family described by the OpenAPI specification includes one of Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure, Alibaba Open Platform, IBM Cloud Platform and Cloud Oracle Platform.
 8. A tangible non-transitory computer readable storage medium, including program instructions loaded into memory that, when executed on processors, cause the processors to implement a method of keeping up with deployment of application programming interfaces (APIs), so that Secure Access Service Edge (SASE) protection is afforded, including: parsing an OpenAPI specification to extract usable attributes of API resources, which are useful for building a connector, including extracting attributes of core activities that trigger protective actions; and applying a connection creator that performs actions including accessing a template for creating connector rules and using the extracted attributes with the template to produce the connector rules, thereby automating generation of connectors.
 9. The tangible non-transitory computer readable storage medium of claim 8, further including deploying connector rules in deep packet inspection (DPI) proxies for processing of intercepted APIs.
 10. The tangible non-transitory computer readable storage medium of claim 8, further including determining to use connector rules based on a domain name in a uniform resource identifier (URI) used to access an API.
 11. The tangible non-transitory computer readable storage medium of claim 10, wherein the API is described by the OpenAPI specification.
 12. The tangible non-transitory computer readable storage medium of claim 8, further including an operation identifier key usable to identify activities requested by API calls.
 13. The method of claim 11, further including combining uniform resource locator (URL) endpoint information and at least part of a uniform resource identifier (URI) for an API call to create an alternate operation identifier usable to identify activities requested by the API call.
 14. The tangible non-transitory computer readable storage medium of claim 8, wherein an API family described by the OpenAPI specification includes one of Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure, Alibaba Open Platform, IBM Cloud Platform and Cloud Oracle Platform.
 15. A device for keeping up with deployment of application programming interfaces (APIs), so that Secure Access Service Edge (SASE) protection is afforded, the device including a processor, memory coupled to the processor, and computer instructions loaded into the memory that, when executed, cause the processor to implement a process that includes: parsing an OpenAPI specification to extract usable attributes of API resources, which are useful for building a connector, including extracting attributes of core activities that trigger protective actions; and applying a connection creator that performs actions including accessing a template for creating connector rules and using the extracted attributes with the template to produce the connector rules, thereby automating generation of connectors.
 16. The device of claim 15, further including deploying connector rules in deep packet inspection (DPI) proxies for processing of intercepted APIs.
 17. The device of claim 15, further including determining to use connector rules based on a domain name in a uniform resource identifier (URI) used to access an API described by the OpenAPI specification.
 18. The device of claim 15, further including an operation identifier key usable to identify activities requested by API calls.
 19. The device of claim 18, further including combining uniform resource locator (URL) endpoint information and at least part of a uniform resource identifier (URI) for an API call to create an alternate operation identifier usable to identify activities requested by the API call.
 20. The device of claim 15, wherein an API family described by the OpenAPI specification includes one of Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure, Alibaba Open Platform, IBM Cloud Platform and Cloud Oracle Platform. 